package gowcage.slidingmenu.presenter;

import gowcage.slidingmenu.view.IDrawerLayout;
import gowcage.utils.ByteUtils;

/**
 * Created by Administrator on 2017/4/15.
 */

public class BytePresenter {

    private final String TAG = "BytePresenter-->";

    private IDrawerLayout idl;

    public BytePresenter(IDrawerLayout idl) {
        this.idl = idl;
    }

    public void setConvertText(String str){
        idl.setConvertText(str);
    }

    public String byte2str(byte[] bytes) {
        return ByteUtils.getString(bytes);
    }

    public byte[] str2byte(String str){
        return ByteUtils.getBytes(str);
    }
}
